import {
	post
} from './api.js'

//订单预览
export const confirm = (data) => {
	return post('/users/order/confirm', data)
}
//订单提交
export const submitOrder = (data) => {
	return post('/users/order/submit', data)
}

//订单提交
export const order_info = (data) => {
	return post('/users/order/order_info', data)
}
 // 订单支付
export const order_pay = (data) => {
	return post('/users/order/order_pay', data)
}


//地址列表
export const addressList = (data) => {
	return post('/users/address/list', data)
}

//地址获取
export const getAddress = (data) => {
	return post('/users/address/get', data)
}

//地址列表
export const editAddress = (data) => {
	return post('/users/address/edit', data)
}

//地址默认
export const defaultAddress = (data) => {
	return post('/users/address/default', data)
}

//地址删除
export const delAddress = (data) => {
	return post('/users/address/del', data)
}


//地址修改
export const edit = (data) => {
	return post('/users/address/edit', data)
}


//地址添加
export const addAddress = (data) => {
	return post('/users/address/add', data)
}

export const getInvoiceSave = (data) => {
  return post('/users/invoice/get', data)
}

// 发票保存
export const invoiceSave = (data) => {
  return post('/users/invoice/save', data)
}